﻿<UserControl x:Class="LiSAClient.WpfClient.View.Projects.ProjectAdminProgressView"
             xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
             xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
             xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" 
             xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
             xmlns:dynamicColumns="clr-namespace:LiSAClient.WpfClient.Resources.Extensions.DynamicColumns"
             mc:Ignorable="d" 
             d:DesignHeight="300" d:DesignWidth="300">
    <UserControl.Resources>
        <dynamicColumns:ConfigToDynamicGridViewConverter x:Key="ConfigToDynamicGridViewConverter" />
    </UserControl.Resources>
    <Grid>
        <Grid.RowDefinitions>
            <RowDefinition Height="Auto" />
            <RowDefinition Height="Auto" />
            <RowDefinition Height="Auto" />
            <RowDefinition Height="*"/>
            <RowDefinition Height="Auto" />
            <RowDefinition Height="Auto" />
        </Grid.RowDefinitions>
        <ListView Grid.Row="3" ItemsSource="{Binding OverviewLines}" SelectedItem="{Binding SelectedRow, Mode=TwoWay}" View="{Binding ColumnConfig, Converter={StaticResource ConfigToDynamicGridViewConverter}}" 
                  ItemContainerStyle="{StaticResource AlternatingStyle}" AlternationCount="2" 
                  Style="{StaticResource ListViewStyle}" HorizontalAlignment="Stretch" VerticalAlignment="Stretch" Padding="10" />

    </Grid>
</UserControl>
